<div class="syntax"><pre><span class="c"># Case In Python</span>
<span class="n">age</span> <span class="o">=</span> <span class="nb">raw_input</span><span class="p">(</span><span class="s">&quot;Enter Your Age:&quot;</span><span class="p">)</span>
<span class="k">if</span> <span class="n">age</span> <span class="o">&lt;</span> <span class="mf">5</span><span class="p">:</span>
    <span class="k">print</span> <span class="s">&quot;You&#39;re too young for computers, Go Outside!&quot;</span>
<span class="k">elif</span> <span class="n">age</span> <span class="o">==</span> <span class="mf">6</span><span class="p">:</span>
    <span class="k">print</span> <span class="s">&quot;I like case structures!&quot;</span>
<span class="k">elif</span> <span class="n">age</span> <span class="o">==</span> <span class="mf">70</span><span class="p">:</span>
    <span class="k">print</span> <span class="s">&quot;You youngin&#39;s are spoiled with your &#39;Case&#39; structures!  Back in my day we had to flip bits with our toes!&quot;</span>
<span class="k">else</span><span class="p">:</span> <span class="c"># Default case</span>
    <span class="k">print</span> <span class="s">&quot;This is so lame, Mike!&quot;</span>
</pre></div>
